const mockjs= require('mockjs');
const { VITE_APP_APIHOST } = process.env;
const ajaxHeadersTokenKey = 'g-token';

const mock = {};

mock[`POST ${VITE_APP_APIHOST || ''}/admin-role-module/listByRole`] = (req, res) => {
    res.send({
      code: 0,
      data: [
    {
      "id": 835,
      "roleId": 27,
      "moduleId": 105,
      "uid": "1",
      "insertTime": "2022-10-12 11:30:53",
      "updateTime": null,
      "deleted": 0
    },
    {
      "id": 836,
      "roleId": 27,
      "moduleId": 106,
      "uid": "1",
      "insertTime": "2022-10-12 11:31:28",
      "updateTime": null,
      "deleted": 0
    },
    {
      "id": 837,
      "roleId": 27,
      "moduleId": 107,
      "uid": "1",
      "insertTime": "2022-10-12 11:31:39",
      "updateTime": null,
      "deleted": 0
    },
    {
      "id": 838,
      "roleId": 27,
      "moduleId": 108,
      "uid": "0",
      "insertTime": "2022-10-26 18:00:10",
      "updateTime": null,
      "deleted": 0
    },
    {
      "id": 839,
      "roleId": 27,
      "moduleId": 109,
      "uid": "1",
      "insertTime": "2022-10-29 20:07:04",
      "updateTime": null,
      "deleted": 0
    },
    {
      "id": 840,
      "roleId": 27,
      "moduleId": 110,
      "uid": "1",
      "insertTime": "2022-10-31 16:48:54",
      "updateTime": null,
      "deleted": 0
    },
    {
      "id": 841,
      "roleId": 27,
      "moduleId": 111,
      "uid": "1",
      "insertTime": "2022-10-31 16:49:04",
      "updateTime": null,
      "deleted": 0
    }]
    });
};
module.exports = {
  ...mock
};
  